package server.network;

import shared.network.messages.TextMessage;

import com.jme3.network.HostedConnection;
import com.jme3.network.Message;
import com.jme3.network.MessageListener;

public class ServerListener implements MessageListener<HostedConnection>{

	@Override
	public void messageReceived(HostedConnection arg0, Message arg1) {

		if(arg1 instanceof TextMessage)
		{
			System.out.println(arg1.toString());
		}
		
	}
	
	

}
